Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Fix crasher when creating a PR with nothing in the body - #482

Merged
grokys merged 7 commits into
masterfrom
fixes/477-crash-pr-empty-body
Aug 9, 2016
Merged

Fix crasher when creating a PR with nothing in the body#482
grokys merged 7 commits into
masterfrom
fixes/477-crash-pr-empty-body

Conversation

@shana

@shana shana commented Aug 8, 2016

Copy link
Copy Markdown
Contributor

Fixes #477

vm.PRTitle = title;

await vm.CreatePullRequest.ExecuteAsync();
ms.Received().CreatePullRequest(repository, vm.PRTitle, String.Empty, vm.SourceBranch, vm.TargetBranch);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the warning here can be suppressed by appending e.g. var unused =.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or maybe just doing await there, it might still complain without it

@grokys grokys Aug 9, 2016

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That won't work - the method is on a mock so it won't return anything to await.

@shana
shana force-pushed the fixes/477-crash-pr-empty-body branch from 73f4789 to bdd9b97 Compare August 9, 2016 11:22
@grokys
grokys merged commit 7481136 into master Aug 9, 2016
@grokys
grokys deleted the fixes/477-crash-pr-empty-body branch August 9, 2016 11:30
jcansdale added a commit that referenced this pull request Nov 7, 2019
Remove dependency on private script submodule
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants